using MemoryPack;

namespace Game.Networking.Server {
	public class C_ProgramFileDownloadRequestMessageHandler : BaseClientMessageHandler {

		public override ClientPacketID CommandId {
			get {
				return ClientPacketID.ProgramFileDownloadRequest;
			}
		}

		public override void ProcessMessage(ClientState client, byte[] rawCommand) {
			var command = MemoryPackSerializer.Deserialize<С_ProgramFileDownloadRequestMessage>(rawCommand);
			ServerScriptController.Instance.SendProgramFileToUser(client, command.FileName);
		}
	}
}
